﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageaccounts.aspx.cs"
    Inherits="LiveWebServiceAdmin.ActionPages.managedomain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <div>

        <script src="../Scripts/jq.js" type="text/javascript"></script>

        <script src="../Scripts/thickbox.js" type="text/javascript"></script>

        <script src="../Scripts/valign.js" type="text/javascript"></script>

        <link href="../Styles/thickbox.css" rel="stylesheet" type="text/css" />
    </div>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="IsCompleted" runat="server" />
    <div class="TB_modal" id="TB_ajaxContent">
        <div id="AccountDiv">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewDomainAdmin" runat="server" Text="Domain administrator:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewDomainAdmin" runat="server" ValidationGroup="newAccount" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewDomainAdmin"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewDomainAdminPwd" runat="server" Text="Domain administrator password:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewDomainAdminPwd" runat="server" TextMode="Password" ValidationGroup="newAccount"
                            Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewDomainAdminPwd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewPSAdmin" runat="server" Text="PowerShell administrator:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewPSAdmin" runat="server" ValidationGroup="newAccount" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbIsNewPSAdmin" Text="Create Live account" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewPSAdmin"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewPSAdminPwd" runat="server" Text="PowerShell administrator password:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewPSAdminPwd" runat="server" TextMode="Password" ValidationGroup="newAccount"
                            Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewPSAdminPwd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewEwsAdmin" runat="server" Text="Live Exchange administrator:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewEwsAdmin" runat="server" ValidationGroup="newAccount" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbIsNewEXAdmin" Text="Create Live account" runat="server" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewEwsAdmin"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewEwsAdminPwd" runat="server" Text="Live Exchange administrator password:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewEwsAdminPwd" runat="server" TextMode="Password" ValidationGroup="newAccount"
                            Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" Display="Dynamic"
                            ValidationGroup="newAccount" ErrorMessage="This field is required" ControlToValidate="tbNewEwsAdminPwd"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblErrorTextNewAccount" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btCreateNewAccount" runat="server" Text="Create" ValidationGroup="newAccount"
                            OnClick="btCreateNewAccount_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            if ($("#IsCompleted").attr("value") != "") {
                parent.tb_remove();
                parent.location.reload();
            };
        });
    </script>

</body>
</html>
